<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form  method="post" action="/shopcart/addShopcart" >
    <table>
        <tr>
            <td>shopcart_id:</td>
            <td><input type="text" name="shopcartId" ></td>
        </tr>
        <tr>
            <td>product_id:</td>
            <td><input type="text" name="productId" ></td>
        </tr>
        <tr>
            <td>user_id:</td>
            <td><input type="text" name="userId"></td>
        </tr>
        <tr>
            <td>shopcart_num:</td>
            <td><input type="text" name="shopcartNum" ></td>
        </tr>
        <tr>
            <td>shopcart_createtime:<td>
            <td><input type="text" name="shopcartCreatetime" id="createTime"></td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="提交" >
            </td>
        </tr>

    </table>
</form>
</body>
<script>
    var mydata= new Date();
    var tt=document.getElementById("createTime");
    tt.value = mydata.toLocaleDateString();
</script>
</html>